import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
    state: {
        tagObj: {},
        cateArr: []
    },
    mutations: {
        setTagObj(state, obj) {
            state.tagObj = obj
        },
        setCateArr(state, data) {
            state.cateArr = data
        },
    }
})

export default store
